package com.igeekhome.wzgl.service.impl;

import com.igeekhome.wzgl.entity.MaterialManagementEntity;
import com.igeekhome.wzgl.mapper.IMaterialManagementMapper;
import com.igeekhome.wzgl.service.IMaterialManagement;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MaterialManagementImpl implements IMaterialManagement {
    @Autowired
    private IMaterialManagementMapper iMaterialManagementMapper;

    @Override
    public int insert(MaterialManagementEntity mm){return iMaterialManagementMapper.insert(mm);}

    @Override
    public List<MaterialManagementEntity> inquire( String materialBrand) {
        return iMaterialManagementMapper.inquire(materialBrand);
    }



    @Override
    public int revise(MaterialManagementEntity mm) {return iMaterialManagementMapper.revise(mm);}

    @Override
    public int delete(int id) {
        return iMaterialManagementMapper.delete(id);
    }

    @Override
    public List<MaterialManagementEntity> page() {
        return iMaterialManagementMapper.page();
    }

    @Override
    public int select(int id) {
        return iMaterialManagementMapper.select(id);
    }

    @Override
    public MaterialManagementEntity getById(int id) {
        return iMaterialManagementMapper.getById(id);
    }
    @Override
    public int updata(MaterialManagementEntity mm) {return iMaterialManagementMapper.revise(mm);}
}
